package June02;

public class T01Manager extends T01Employee {
    private double bouns;

    public T01Manager() {
    }

//（使用插件无法生成父类的成员变量javabean，所以如果有父类继承那么必须使用idea的自动生成，快捷键alt+ins）
    public T01Manager(String id, String name, double salary, double bouns) {
        super(id, name, salary);//super关键字
        this.bouns = bouns;
    }

    public double getBouns() {
        return bouns;
    }

    public void setBouns(double bouns) {
        this.bouns = bouns;
    }


    public String toString(double bouns) {
        //直接调用父类的toString方法作为返回值
        return super.toString()+"奖金："+bouns;
    }

    @Override
    public void work() {
        System.out.println("管理其他人");
    }
}
